D
D
dr4wtn2014-01-31 03:11:27
linux
dr4wtn, 2014-01-31 03:11:27

Xen+HVM. Editing a guest domain config file?

CentOS 6.4 is installed on the computer, I am trying to create an HVM domain with Windows 7 using Xen tools.
Difficulties arose at the stage of editing the domain configuration file, namely, the disk parameter is not entirely clear.
Raid-1 is present in the system.

# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda2[0] sdb2[1]
      204736 blocks super 1.0 [2/2] [UU]
md1 : active raid1 sda3[0] sdb3[1]
      2913545024 blocks super 1.1 [2/2] [UU]
      bitmap: 4/22 pages [16KB], 65536KB chunk

cdrom on the system:
# ls -la /dev/cdrom
lrwxrwxrwx. 1 root root 3 Jan 28 14:36 /dev/cdrom -> sr0

Created an ISO image of Windows7 - windows7.iso, a disk image for the guest domain - WS7.img.
Specified the following in the disk parameter:
disk = [ 'file:/root/xenimages/WS7.img,md1,w',
'file:/root/xenimages/windows7.iso,sr0:cdrom,r']

But when executing
# xm create /etc/xen/win7
Using config file "/etc/xen/win7".
Error: Unable to find number for device (md1)

With cdrom'om the same picture.
Obviously, the DEV parameter is incorrect in the first and second cases. Please help me explain the DEV parameter for disk.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2014-01-31
@BuriK666

disk = [ 'file:/root/xenimages/WS7.img,hda,w', 'file:/root/xenimages/windows7.iso,hdc:cdrom,r' ]
You should at least read the documentation or look at examples.

M
Melkij, 2014-01-31
@melkij

disk = [
'what is on the host, what will it be in the guest, access',
...
]
So the question is, what exactly are you trying to do?

J
jammywork1, 2014-08-04
@jammywork1

fix md1 to hda, sr0 to hdb and you will be happy, hda, hdb is how the guest will see your disks... more about xen'a dusty archives....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question