Hi,ok thanks,
now 1 more thing i would like to know. Is there a possibility to add files (or maybe a partition) to the proxmox installation harddisk which can be accessed by a vm?
login on the Proxmox VE console or via SSH:
find the name of the disk, e.g. with:
Code:fdisk -l
and add a line to your /etc/qemu-server/VMID.conf file corresponding to your disk/partition layout:
Code:ide1: /dev/sdb2
Hi,I'm still confused about this, I added the line to the vmid.conf and the disk shows up in the webinterface under hardware device list for the vm as a harddrive.
But when i login the vm and do fdisk -l , I cannot find the harddisk. So how do i mount it in the vm's filesystem?
Hi,
you add an partition to the VM as disk. so you don't have an partitiontable inside the VM - it's a plain partition.
somethink like "mount /dev/hdb /data" should work. If there nothing else on the disk, you can use sdb instead of sdb2 - than you have the whole disk inside the vm.
Udo
Yes,ok, I'll try that, and for more disks i just add like ide2: /dev/sdc1 and ide3: /dev/sdd1?
Hi,i deleted the cdrom since i dont use it anymore after install, how does that work with virtio, can i foind some more info about that?
Hi,I managed to get the drives show up in the webinterface under hardware in the guest as virtio 0:1 virtio 0:2 and so on. But I can't get them to mount by the: mount /dev/sdb /data command. Do i need to specify more in the command? I've tried all kinds of things but no luck.
thanks!Hi,
if you use virtio, your disk named "vda", "vdb" and so on. With sdb you don't have luck... (you can look with fdisk -l for the devices - but you will get an error, because vda hasn't a partitiontable (because is an partition)).
Udo
Hi,Greetings,
Update:
I created a logical volume in the same volume group (vg1) as is used to host the vm's disk image logical volume:
lvcreate -L 10G -n vm-102-disk-2 vg1
And tagged it
lvchange --addtag pve-vm-102 /dev/vg1/vm-102-disk-2
I added to the file /etc/qemu-server/102.conf (on the machine the vm is running on, which is why I couldn't see it before, duh) the line
ide1: vg1:vm-102-disk-2
The second disk is now visible with the correct capacity under the Hardware tag on the Virtual Machine Configuration page.
But the vm's operating system (Linux) still can't see the second disk even after reboot (fdisk -l doesn't show the device).
Best regards,
George