Operating System - HP-UX
1748202 Members
2911 Online
108759 Solutions
New Discussion

How can I add an iso image to a vm?

 
SOLVED
Go to solution
Robert-Jan Goossens
Honored Contributor

How can I add an iso image to a vm?

Server RX7640
OS 11.23
# hpvmnet –c S switch1 –n1
# hpvm –S switch1 –b
# hpvmnet
Name Number State Mode NamePPA MAC Address IP Address
======== ====== ======= ========= ======== ============== ===============
localnet 1 Up Shared N/A N/A
switch1 2 Up Shared lan1 0x001e0b832145

Created a raw device file (/dev/vg02/rlvol2) 60GB for the OS install

Created a new vm
# hpvmcreate -P VM01 -O LINUX -c2 -r4G -a network:lan::vswitch:switch1 -a disk:scsi::lv:/dev/vg01/rlvol2

# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
VM01 3 LINUX Off 2 1 1 4 GB 0

Question: How can add the linux iso to this vm?
Iso has been uploaded to /data/RHEL4.6-ia64-AS-DVD.iso

Best regards,
Robert-Jan
6 REPLIES 6

Re: How can I add an iso image to a vm?

Robert-Jan,

hpvmmodify â P VM01 â a dvd:scsi:0,0,0:file:/data/RHEL4.6-ia64-AS-DVD.iso

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Solution

Re: How can I add an iso image to a vm?

Yuck... lets try again...

hpvmmodify -P VM01 -a dvd:scsi:0,0,0:file:/data/RHEL4.6-ia64-AS-DVD.iso


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Robert-Jan Goossens
Honored Contributor

Re: How can I add an iso image to a vm?

Thanks Duncan! I will try it first thing in the morning.

Best regards,
Robert-Jan
Tim Nelson
Honored Contributor

Re: How can I add an iso image to a vm?

Even better.

Put multiple iso in a directory and then be able to pick/mount which one you want during IVM boot with IN and EJ.

hpvmmodify -P Vguest1 -a dvd:scsi::null:/data1

Torsten.
Acclaimed Contributor

Re: How can I add an iso image to a vm?

Hi RJ,

I posted this yesterday to another thread together with an example:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1258659

This resource statement would take the
following form:
dvd:scsi::null:/pathname
Where /pathname is the file system directory where the ISO files are located."

see chapter

7.2.2.3.5 Virtual FileDVDs


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Robert-Jan Goossens
Honored Contributor

Re: How can I add an iso image to a vm?

Thorsten, if you where a girl I would kiss you ;-)

Thanks for the link you have posted.

Best Regards,
Robert-Jan