[SOLVED] Mount second disk in vm

foadk

Member
Mar 25, 2020
19
0
6
36
Hi.
I'm creating a VM with two disks. After running the commands, this is how they look like in conf file:
Bash:
virtio0: local:1013255/vm-1013255-disk-0.qcow2,size=30G
virtio1: local:1013255/vm-1013255-disk-1.qcow2,size=200G
virtio0 works fine like always, but virtio1 needs to be mounted from inside the VM.
this is how i want it to be mounted:
/dev/vda1
is there any command or config to make the mount process automatic?
 
"mount" generally refers to a filesystem and a directory(target) off root filesystem. You mount /dev/vda1 to /mnt/disk1.
Is the disk-1, which is represented by virtio1 device, visible inside the VM as /dev/vda1 ?
If yes, do you want that device to be mounted on boot to some location?
If yes, take a look at "man fstab". Plug this into google "linux mount on boot".


Blockbridge: Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
  • Like
Reactions: foadk
"mount" generally refers to a filesystem and a directory(target) off root filesystem. You mount /dev/vda1 to /mnt/disk1.
Is the disk-1, which is represented by virtio1 device, visible inside the VM as /dev/vda1 ?
If yes, do you want that device to be mounted on boot to some location?
If yes, take a look at "man fstab". Plug this into google "linux mount on boot".


Blockbridge: Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thanks for your answer. Yes, I want it to be mounted to a specific location. I was hopping that there would be a proxmox command that does the work using cloud init.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!