LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] How do I add a second disk to a xen vm?

[ILUG] How do I add a second disk to a xen vm?

Stephen Burke steviewdr at skynet.ie
Tue Apr 22 14:29:20 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Tue, 22 Apr 2008, Conor Wynne wrote:
> I need to add a second disk to a vm as i didn't make the original large
> enough for what I need.
> I have done the following so far:
> dd if=/dev/zero of=/var/xen_vms/newdisk.img bs=1M count=3000
>
> I then modified theconfig file as follws:
>
> name = "rh4_yum_server"
> uuid = "4a61b209-d111-1858-d7e6-948dc934e4af"
> maxmem = 400
> memory = 400
> vcpus = 1
> bootloader = "/usr/bin/pygrub"
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> vfb = [ "type=vnc,vncunused=1" ]
> disk = [ "tap:aio:/var/xen_images/rhel4_yum_server.img,xvda,w" ]
> disk = [ "tap:aio:/var/xen_images/yumsrvdisk2.img,xvdb,w" ]
> vif = [ "mac=00:16:3e:1e:7c:5a,bridge=xenbr0" ]
> No joy then. What am I doing wrong lads?

Humm....I use the following option for file based images in Xen:
disk = 
['file:/xens/vm/diskimage.img,sda1,w','file:/xens/vm/swapimage.img,sda2,w']

so you'd go:
disk = 
['file:/xens/vm/diskimage.img,sda1,w','file:/xens/vm/swapimage.img,sda2,w',file:/xens/vm/diskimage2.img,sda1,w']

I know thats a little different to what your xen config uses.

You could also resize your initial image that you created:
http://wiki.kartbuilding.net/index.php/Resize/Increase_the_Size_of_a_File_Based_DomU_Xen_Filesystem

Rgds,
Steve Burke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIDegz21ZxaWXmuiARAmREAKCOPnRUwc1J4Ms9wTZ3065OhOtDPgCdEd4I
sXvEuR6vMn/h0dVH+st3pVw=
=KzDK
-----END PGP SIGNATURE-----



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell