How to use a physical block for a VM

thecaptain2000

New Member
Apr 13, 2020
3
0
1
59
Hi,
apologies if it is a stupid question, I am a newbie to both proxmox and KVM. Is it possible to use an existing physical block for creating a VM?
A bit of context:

I am in the process of consolidating all home PCs into one Threadripper system. on my old PC I have one windows and one hackintosh installations plus I will need to create another Windows machine to replace my wife's.
The three machines already exist and Ideally (maybe just because I am a newbie) I would like to just "execute" those instances inside a VM in the threadripper system. The systems are expendable, meaning if I cannot make the virtual hardware such that I can boot those windows / osx systems and modify the configuration and I happen to brick them, no problems. I would have thought All I needed to do was to to indicate the path to the disk in the hard disk dialogue box and specify it was a raw device but I did not find a way to do that.


in alternative, if that was not possible, I could do the normal installation but, if possible, I would like to assing a whole hard disk to the VM rather than just a space on a shared disk, is there a way to do that? if so I was not immediately able to see how to do it.


thank you in advance for any help you could provide.
 
in QEMU there is a way to do it, something like:


<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' io='threads' discard='unmap'/>
<source dev='/dev/sda'/>
<target dev='vda' bus='virtio'/>
<boot order='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</disk>
 
Hi Dominik, I had found that page already, I hoped there was a way to do it via the web interface, now I know there isn't one so I can look into that.
Thank you for your help
 

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!