I'm using FreeBSD 11.1-RELEASE as a Xen Dom0 as described in The FreeBSD Handbook in https://www.freebsd.org/doc/handbook/virtualization-host-xen.html ">, and I am having a problem with having a CentOS guest see the vhd hard drive I am trying to present to it. The VM does boot up with the CentOS Everything .iso for version 7.4, but I have no options to select for local storage to which to install CentOS.
I am using cbsd() to manage the Xen DomU VM I am creating. I'll skip describing all the steps I took with cbsd and focus instead on the Xen machine and vhd drive itself.
I start the vm like this:
(I selected option a, centos1):
We can see it is running:
In the attached xen.cfg, see the disks line:
The dsk1.vhd file is nothing more than
Is there some preparation I should be doing for the dsk1.vhd?
I am using cbsd() to manage the Xen DomU VM I am creating. I'll skip describing all the steps I took with cbsd and focus instead on the Xen machine and vhd drive itself.
I start the vm like this:
cbsd@Xen01> xstart
List of offline VMs
0 .. CANCEL
a .. centos1 on local
(I selected option a, centos1):
VRDP is enabled. VNC port: 5900. VNC pass: cbsd
VRDP is enabled. VNC bind/port: 127.0.0.1:5900
For attach VM console, use: vncviewer 127.0.0.1:5900
Resolution: x.
VNC pass: cbsd
[debug]: /usr/local/sbin/xl -vvv create -c /usr/jails/jails-system/centos1/xen.cfg
PID: 0
We can see it is running:
root@Xen01:/usr/jails # cbsd xls
JNAME VM_RAM VM_CPUS VM_OS_TYPE IP4_ADDR STATUS VNC_PORT
centos1 2048 2 linux - On 127.0.0.1:5900
In the attached xen.cfg, see the disks line:
Code:
disk = [
'/usr/jails/jails-data/centos1-data/dsk1.vhd,raw,hda,rw', '/usr/jails/src/iso/cbsd-iso-CentOS-7-x86_64-DVD-1708.iso,raw,hdb:cdrom,r'
]
The dsk1.vhd file is nothing more than
dd=/dev/zero if=dsk1.vhd
. In the attached screenshot you can see the symptom.
root@Xen01:/usr/jails # ls -alh jails-data/centos1-data/dsk1.vhd
-rw-rw-r-- 1 root wheel 10G May 5 21:29 jails-data/centos1-data/dsk1.vhd
root@Xen01:/usr/jails # file jails-data/centos1-data/dsk1.vhd
jails-data/centos1-data/dsk1.vhd: data
root@Xen01:/usr/jails #
Is there some preparation I should be doing for the dsk1.vhd?