Operating System - HP-UX
1833777 Members
2285 Online
110063 Solutions
New Discussion

Deleting dvd device in a VM

 
SOLVED
Go to solution
Francis Flan
Regular Advisor

Deleting dvd device in a VM

Need help with the syntax of this.

I can't see the dvd drive in an ioscan on the host (11.23) so I want to remove it from the VM.
I want to delete the dvd device (c12t2d0)

hpvmdevmgmt -l all

server2:CONFIG=SERVER::WWID_NULL
localnet:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES::WWID_NULL
/dev/rdsk/c0t0d5:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:Win2k3_VM:6005-08b4-0005-5030-0003-a000-019a-0000
/dev/rdsk/c12t2d0:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:Win2k3_VM:HPVM_STATID_130_3154911232
lan2:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO::WWID_NULL
lan0:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vswitch1:WWID_NULL
vswitch1:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:Win2k3_VM:WWID_NULL
lan1:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO::WWID_NULL
HPVM MANAGEMENT_DB EOF

# hpvmdevmgmt -d gdev:/dev/rdsk/c12t2d0:Win2k3_VM
hpvmdevmgmt: ERROR (host): Cannot delete a device with dependents.
Invalid argument
hpvmdevmgmt: Unable to continue.
#
2 REPLIES 2
Torsten.
Acclaimed Contributor
Solution

Re: Deleting dvd device in a VM

It is still assigned to at least 1 HPVM, right?
Remove it from the HPVM first,

# hpvmmodify â P myvm â d dvd:scsi::disk:/dev/rdsk/c12t2d0

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!   
Francis Flan
Regular Advisor

Re: Deleting dvd device in a VM

Torsten was correct - by modifying the VM it solved the problem and the dvd device was available to use again.

thanks Torsten