Hi,
I'm trying to map a logical volume (sata) as an ide drive from my centos
6.2 host to my centos 6.2 guest.
Here is xml snippet:
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<source dev='/dev/VolGroup02/LogVol00'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
Dmesg shows this:
sd 0:0:0:0: [sda] 5859368960 512-byte logical blocks: (2.99 TB/2.72 TiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
sda: unknown partition table
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
Inside the guest, it shows up as a sata drive:
[root@nemedia ~]# sfdisk -l /dev/sda
Disk /dev/sda: 364728 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sda: unrecognized partition table type
No partitions found
[root@nemedia ~]# sfdisk -l /dev/hda
/dev/hda: No such file or directory
sfdisk: cannot open /dev/hda for reading
I don't see how this would be a problem except for the fact that no matter
what kind of filesystem I try to create on /dev/sda from the guest, I get
errors when I try to mount it. No matter what I do, I cannot mount any
filesystem from that device inside the guest.
Both the cdrom and block device are showing up as scsi devices even though
I'm passing them through as ide devices.
Am I doing something wrong or am I missing something completely?
I've try searching for solution or a hint, but I must not be searching for
the right thing.
Can anybody provide me some advice or point me somewhere?
Thanks in advance.
Brad
--
Bradley Leonard
EMail: bradley at stygianresearch.com
Rob - "The hills are alive with the..the..sound of monkeys?"
Bucky - "It's in the key of delicious."
Life is simple. Humans make it complicated.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Hi all,
I use CentOS5.x + Xen in production for virtualization. I use it with bridged vlan networks and bonding (active-backup) like that:
eth0 eth1
| |
-------
|
bond0-------bond0.10---------bond0.12 ...
| | |
| vlanbr10 vlanbr12
dom0 | |
------------- --------------
| | | | | | ...
domU1 domU2 domU3 domU4 domU5 domU6
For future hypervisors, i want to implement the same things with CentOS6.x + KVM. In test env i've setup CentOS6.2 + KVM (with last updates) with the same network config, but guest lose network connection very often, and i don't know why.
Network config:
/etc/sysconfig/network-scripts/ifcfg-bond0.6:
DEVICE=bond0.6
BRIDGE=vlanbr6
ONBOOT=yes
BOOTPROTO=none
VLAN=yes
TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-vlanbr6:
DEVICE=vlanbr6
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none
DELAY=0
I've installed guest like that (with a lot of retry because of network loss during installation)
virt-install --name=guest02-c6 --disk path=/var/lib/libvirt/images/guest02-c6.img,size=10,sparse=false --graphics=spice,keymap=fr --vcpus=2 --ram=2048 --location=http://spacewalk.example.com/pub/dist/centos/6/x86_64/ --extra-args="ks=http://spacewalk.example.com/pub/ks/el6/guest02.el6.cfg ip=192.168.2.12 netmask=255.255.255.224 gateway=192.168.2.10 dns=192.168.2.10" --os-type=linux --os-variant=rhel6 --network=bridge:vlanbr6,model=virtio
Someone have setup similar environment ?
Regards.
Baptiste.