WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] howto grow a domU disk image

To: Joe Linoff <jlinoff@xxxxxxxxxx>
Subject: Re: [Xen-users] howto grow a domU disk image
From: Franco Gismondi <f_gismondi@xxxxxxxx>
Date: Mon, 31 Jan 2011 16:24:04 +0000 (GMT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 31 Jan 2011 08:25:25 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1296491044; bh=Gzn5MEzz5LBP8y8h+8OpRhxx5XtDaDWdx2WERZynBYM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=f1+hhQ8fJhyVC0ijfPlW4KxDM3394qzzA56s1agj3vjkZi8NHGAgJaubDXM2lGCwYE7G5BeWl54LzmyZ/Y9GDh8anf1RHab0jzFNV+4gg7U03Bd0Niozm3wufavdYxRw7oUdUNWilqHDu2O4NTNAvnCM/cUZUakuqnlAXKeolNA=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dSTsM77cGYX2H6e1kDWR/aXQAbJ8yQVTQ++Cv5EdKLv5WKkP9hn4sWRaiS2ZyCJVM8Xr4UjLTT1hJQNvwiwAZJxLzIek8tvFwN2AlsVXUvOLLw0rC5pOCvWOw97i34C9tnMjIiuJXCtTt8eBcr7fFbh/RgA6Q9uH2SZflkTLXWk=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8AD4194C251EC74CB897E261038F44787266EE@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8AD4194C251EC74CB897E261038F44787266B3@xxxxxxxxxxxxxxxxxxx> <406878.82654.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <8AD4194C251EC74CB897E261038F44787266EA@xxxxxxxxxxxxxxxxxxx> <886010.47396.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <8AD4194C251EC74CB897E261038F44787266EE@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I have send the mailist but not have answare.
I can use  cobbler/koan and guestfish form my XEN 3.0 ?

Thanks 


----- Messaggio originale -----
Da: Joe Linoff <jlinoff@xxxxxxxxxx>
A: Franco Gismondi <f_gismondi@xxxxxxxx>
Cc: Joe Linoff jlinoff@xxxxxxxxxxxxx

Inviato: Lun 31 gennaio 2011, 17:18:13
Oggetto: RE: [Xen-users] howto grow a domU disk image

Hi Franco:

> You are the first one to help me and i thank you a lot

I am not sure but I think that is because you sent your email address to me 
personally and not to the xen users mailing list.

> When i prove from my xenwebmanager interface  to add new server i have this 
> messages in form the xenmanager and in file log /var/log/xenmanager/error_log

I am afraid that I can't help with xenwebmanager. I don't use it. You will talk 
to the experts.

I use cobbler/koan and guestfish for my cloud administration.

Best regards,

Joe


-----Original Message-----
From: Franco Gismondi [mailto:f_gismondi@xxxxxxxx] 
Sent: Monday, January 31, 2011 8:13 AM
To: Joe Linoff
Subject: Re: [Xen-users] howto grow a domU disk image

You are the first one to help me and i thank you a lot

When i prove from my xenwebmanager interface  to add new server i have this 
messages in form the xenmanager and in file log /var/log/xenmanager/error_log 

[24/Jan/2011:13:13:01] HTTP Traceback (most recent call last):
  File "/usr/share/xenwebmanager/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/share/xenwebmanager/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/bin/xenwebmanager", line 1059, in alerts
    listalerts += xc_servers[sessid][host].fill_alerts()
  File "/usr/share/xenwebmanager/backend/addserver.py", line 45, in fill_alerts
    for ref in self.all_messages.keys():
AttributeError: backend instance has no attribute 'all_messages


I have very 
Thank


 


----- Messaggio originale -----
Da: Joe Linoff <jlinoff@xxxxxxxxxx>
A: Franco Gismondi <f_gismondi@xxxxxxxx>
Cc: Joe Linoff <jlinoff@xxxxxxxxxx>
Inviato: Lun 31 gennaio 2011, 16:56:36
Oggetto: RE: [Xen-users] howto grow a domU disk image

Hi Franco:

I would be happy to help. What is the problem?

Cheers,

Joe

-----Original Message-----
From: Franco Gismondi [mailto:f_gismondi@xxxxxxxx] 
Sent: Monday, January 31, 2011 2:05 AM
To: Joe Linoff
Subject: Re: [Xen-users] howto grow a domU disk image

I have this problem,i non working whit xenwebmanager
I have installated the last versione of xenwebmanager  
xenwebmanager-0.9.9-1.el5.rf.noarch.rpm 

and my XEN server is  xen-3.0.3-105.el5_5.5  The OS is  Centos 5 

Can you give me an help

Thaks 





----- Messaggio originale -----
Da: Joe Linoff <jlinoff@xxxxxxxxxx>
A: xen-users@xxxxxxxxxxxxxxxxxxx
Cc: Joe Linoff <jlinoff@xxxxxxxxxx>
Inviato: Dom 30 gennaio 2011, 18:23:36
Oggetto: [Xen-users] howto grow a domU disk image

Hi Folks:

I am a big fan of Xen and have a gotten a lot of help from this forum so
I am posting this in the hopes that it will help others. My apologies
for wasting space if this is already widely known.

I am running xen-3.4.3 on CentOS 5.5 and recently had to grow a domU
guest image because I miscalculated the amount of space I needed for
packages. I tried a variety of ways to the fix the problem but because
the image was created by cobbler, most of them didn't work because there
was no ext2 file system anywhere. My particular image had two
partitions: ext3 for /sda1 (/boot) and lvm2 for /sda2 (/, swap, etc.)
for the rest. Tools like gparted don't work with lvm (yet).

I finally settled on virt-resize from the guestfish package and found it
so easy to use that I thought I would share it. 

Here are the steps, in a nutshell:

  % # Shutdown the VM (vm01)
  % virsh shutdown vm01

  % # Find the location of the disk image.
  % virsh dumpxml vm01 | xpath /domain/devices/disk/source
  Found 1 nodes:
  -- NODE --
  <source file="/var/lib/libvirt/images/vm01.img" />

  % # List the partitions so that you can figure out which one you want
to grow.
  % # Can also use tools like gparted for this.
  % cd /var/lib/libvirt/images/
  % virt-list-partitions vm01.img
  Could not open '/dev/kqemu' - QEMU acceleration layer not activated:
No such file or directory
  /dev/sda1
  /dev/sda2

  % # Create a new image of the correct size, in this case 16GB.
  % dd if=/dev/zero of=newdisk bs=1GB count=16

  % # Resize.
  % virt-resize --expand /dev/sda2 vm01.img newdisk

  % # Install the new image.
  % mv vm01.img{,.too-small}
  % mv newdisk vm01.img

  % # Restart the guest.
  % virsh start vm01

If you don't have the guestfish package which includes the virt-resize
and virt-list-partitions tools, you can find it in the EPEL repository
for Redhat/CentOS/Fedora. It can be installed as follows.

  % # As root -- get the repository reference if you don't already have
it.
  % # The rpm command will be different for non Redhat/CentOS/Fedora
distros.
  % rpm -Uvh
http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noa
rch.rpm

  % # Install guestfish
  % # The yum command will be different for non Redhat/CentOS/Fedora
distros.
  % yum -y install guestfish

Cheers,

Joe



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>