[CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread For@ll
Hi,

If I create a guest which uses (hvm) can I add access to physical device 
like cdrom?

Regards,

f...@ll
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] IP aliases of CentOS Guests not accessible running 2.6.18-164.el5xen

2009-09-28 Thread Devraj Mukherjee
Hi all,

First of all I am posting this on two lists for a reason, because the
issue being reported by me could be because of a change delivered by a
Kernel update or due to Xen.

I have recently managed to update all Xen Guest domains running CentOS
5.3 to the latest bunch of updates + Kernel. My Xen host also runs the
same CentOS 5.3 updated to all recent packages.

The Guest images in concern had IP aliases assigned to them.
Everything worked until I ran the updates and restarted.

Since I have restarted the aliased IP addresses are no longer
accessible from the outside world, they can still be accessed from all
machines (guest virtual machines) in the subnet (ping, services like
http).

I have removed all firewall rules to test if that would have effected
it without any change (any the fact that I can access them within the
subnet proves its not the firewall).

Is there anything special I have to do to enable aliasing? May be this
is a Xen issue? I am suspecting the Xen host, but not sure how to go
about proving this.

Any information would be greatly appreciated.

My Guests do run fail2ban (delivered via atrpms) and iptables
(allowing only HTTP, HTTPS and SSH) connections.

PS for obvious reasons I am not posting IP addresses and routes etc
first up, I can make that information available if required.

-- 
The secret impresses no-one, the trick you use it for is everything
- Alfred Borden (The Prestiege)
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] IP aliases of CentOS Guests not accessible running 2.6.18-164.el5xen

2009-09-28 Thread Christopher G. Stach II
- Devraj Mukherjee dev...@gmail.com wrote:

 Since I have restarted the aliased IP addresses are no longer
 accessible from the outside world, they can still be accessed from
 all
 machines (guest virtual machines) in the subnet (ping, services like
 http).
 
 I have removed all firewall rules to test if that would have effected
 it without any change (any the fact that I can access them within the
 subnet proves its not the firewall).

Assuming you are using bridging, do you see ingress packets at dom0's ethernet 
interface(s), dom0's bridge(s), and the guests' interfaces? If so, do you see 
the guests' reply packets where you expect them?

-- 
Christopher G. Stach II


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Grant McWilliams
On Mon, Sep 28, 2009 at 6:43 AM, Dennis J. denni...@conversis.de wrote:

 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest
 by adding a few gigs and then make the guest see this change without
 requiring a reboot. Is this possible maybe using some kind of bus rescan in
 the guest?

 Regards,
   Dennis


Last time I checked this wasn't supported.


Grant McWilliams

Some people, when confronted with a problem, think I know, I'll use
Windows.
Now they have two problems.
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Fabian Arrotin
Dennis J. wrote:
 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host 
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes 
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest 
 by adding a few gigs and then make the guest see this change without 
 requiring a reboot. Is this possible maybe using some kind of bus rescan in 
 the guest?
 

No, it's not possible unfortunately. On a traditionnal SCSI bus you can 
rescan the whole bus to see newer/added devices or just the device to 
see newer size, but not on a Xen domU .
At least that's what i found when i blogged about that . See that thread 
on the Xen list : 
http://lists.xensource.com/archives/html/xen-users/2008-04/msg00246.html

So what i do since then is to use lvm in the domU as well and add a new 
xvd block device to the domU (aka a new LV on the dom0) and then the 
traditionnal pvcreate/vgextend/lvextend. Working correctly for all my 
domU's ..


-- 
--
Fabian Arrotin
idea=`grep -i clue /dev/brain`
test -z $idea  echo sorry, init 6 in progress || sh ./answer.sh


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Karanbir Singh
On 28/09/09 17:37, Fabian Arrotin wrote:
 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..

how are  you able to add a new disk without a reboot ? or is that 
something that works with the xenblock drivers ?

- KB
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Christopher G. Stach II
- Karanbir Singh mail-li...@karan.org wrote:

 how are  you able to add a new disk without a reboot ? or is that 
 something that works with the xenblock drivers ?

xm block-attach

-- 
Christopher G. Stach II


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Fabian Arrotin
Karanbir Singh wrote:
 On 28/09/09 17:37, Fabian Arrotin wrote:
 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..
 
 how are  you able to add a new disk without a reboot ? or is that 
 something that works with the xenblock drivers ?
 
Yes, i've only PV domU's ;-)

virsh attach-disk /path/to/lv/on/the/domO xvd[letter as it appears on 
the domU]

-- 
--
Fabian Arrotin
idea=`grep -i clue /dev/brain`
test -z $idea  echo sorry, init 6 in progress || sh ./answer.sh


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Dennis J.
On 09/28/2009 06:37 PM, Fabian Arrotin wrote:
 Dennis J. wrote:
 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest
 by adding a few gigs and then make the guest see this change without
 requiring a reboot. Is this possible maybe using some kind of bus rescan in
 the guest?


 No, it's not possible unfortunately. On a traditionnal SCSI bus you can
 rescan the whole bus to see newer/added devices or just the device to
 see newer size, but not on a Xen domU .
 At least that's what i found when i blogged about that . See that thread
 on the Xen list :
 http://lists.xensource.com/archives/html/xen-users/2008-04/msg00246.html

 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..

I just tested this and it works great, thanks!

Regards,
   Dennis
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread Tait Clarridge
On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:
 Hi,
 
 If I create a guest which uses (hvm) can I add access to physical device 
 like cdrom?
 
 Regards,
 
 f...@ll

Yes, you are able to add a CDROM device to your guest.

You can add either a physical drive or an ISO image. Are you using
virt-manager or just config files at the command line?

Tait

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread For@ll
Tait Clarridge pisze:
 On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:
   
 Hi,

 If I create a guest which uses (hvm) can I add access to physical device 
 like cdrom?

 Regards,

 f...@ll
 

 Yes, you are able to add a CDROM device to your guest.

 You can add either a physical drive or an ISO image. Are you using
 virt-manager or just config files at the command line?

 Tait

 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt
   
Hi,

I using only a comman line, my centos server have only text console 
without a X server. I used a virsh.

f...@ll
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread Tait Clarridge
On Mon, 2009-09-28 at 22:17 +0200, f...@ll wrote:
 Tait Clarridge pisze:
  On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:

  Hi,
 
  If I create a guest which uses (hvm) can I add access to physical device 
  like cdrom?
 
  Regards,
 
  f...@ll
  
 
  Yes, you are able to add a CDROM device to your guest.
 
  You can add either a physical drive or an ISO image. Are you using
  virt-manager or just config files at the command line?
 
  Tait
 
  ___
  CentOS-virt mailing list
  CentOS-virt@centos.org
  http://lists.centos.org/mailman/listinfo/centos-virt

 Hi,
 
 I using only a comman line, my centos server have only text console 
 without a X server. I used a virsh.
 
 f...@ll

Can you post the config file for the guest?

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread For@ll
Tait Clarridge pisze:
 On Mon, 2009-09-28 at 22:17 +0200, f...@ll wrote:
   
 Tait Clarridge pisze:
 
 On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:
   
   
 Hi,

 If I create a guest which uses (hvm) can I add access to physical device 
 like cdrom?

 Regards,

 f...@ll
 
 
 Yes, you are able to add a CDROM device to your guest.

 You can add either a physical drive or an ISO image. Are you using
 virt-manager or just config files at the command line?

 Tait

 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt
   
   
 Hi,

 I using only a comman line, my centos server have only text console 
 without a X server. I used a virsh.

 f...@ll
 

 Can you post the config file for the guest?

 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt
   
This is a guest config file with xml and native format:

cat win2khvm.xml  
domain type='xen' 
id='50'
  
namewin2k8-hvm/name 
  

  uuidc53ac13f-d32f-9934-8c0b-a8728fb52f19/uuid
  memory1048576/memory
  currentMemory1048576/currentMemory
  vcpu1/vcpu
  os
typehvm/type
loader/usr/lib/xen/boot/hvmloader/loader
boot dev='hd'/
  /os
  features
acpi/
apic/
pae/
  /features
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashrestart/on_crash
  devices
emulator/usr/lib/xen/bin/qemu-dm/emulator
disk type='block' device='disk'
  driver name='phy'/
  source dev='/dev/vol1/win2k8'/
  target dev='hda' bus='ide'/
/disk
disk type='block' device='cdrom'
  driver name='phy'/
  source dev='/dev/cdrom'/
  target dev='hdc' bus='ide'/
  readonly/
/disk
interface type='bridge'
  mac address='00:16:36:2a:e4:15'/
  source bridge='eth0'/
  script path='/etc/xen/scripts/vif-bridge'/
  target dev='vif50.0'/
/interface
serial type='pty'
  source path='/dev/pts/2'/
  target port='0'/
/serial
console type='pty' tty='/dev/pts/2'
  source path='/dev/pts/2'/
  target port='0'/
/console
input type='mouse' bus='ps2'/
graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/
  /devices
/domain


Native config:

cat win2k8.cfg
name = win2k8-hvm
uuid = c53ac13f-d32f-9934-8c0b-a8728fb52f19
maxmem = 1024
memory = 1024
vcpus = 1
builder = hvm
kernel = /usr/lib/xen/boot/hvmloader
boot = c
pae = 1
acpi = 1
apic = 1
localtime = 0
on_poweroff = destroy
on_reboot = restart
on_crash = restart
device_model = /usr/lib/xen/bin/qemu-dm
vfb = [ type=vnc,vncunused=1,keymap=en-us ]
disk = [ phy:/dev/vol1/win2k8,hda,w, phy:/dev/cdrom,hdc:cdrom,r ]
vif = [ 
mac=00:16:36:2a:e4:15,bridge=eth0,script=vif-bridge,vifname=vif50.0 ]
parallel = none
serial = pty

















___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt