public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] virtual cdroms in linux
@ 2006-03-01 15:16 Nick Smith
  2006-03-01 16:16 ` Uwe Klosa
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Smith @ 2006-03-01 15:16 UTC (permalink / raw
  To: gentoo-user

does anyone know how to make a virtual cdrom in linux? kinda like
daemon tools for windows? i have my iso mounted as /mnt/iso but vmware
keeps complaining that i cant use a directory as an iso.  i know
vmware can use iso's as cdroms, but in this instance i cant use
vmware, i have to mount it some other way and just tell vmware its a
cdrom drive.  any suggestions?

TIA
Nick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 15:16 [gentoo-user] virtual cdroms in linux Nick Smith
@ 2006-03-01 16:16 ` Uwe Klosa
  2006-03-01 16:27   ` Nick Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Klosa @ 2006-03-01 16:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

You don't have to mount it for the use with vmware. Update your vmx file with the following:

ide1:0.fileName = "changeme.iso"
ide1:0.deviceType = "cdrom-image"

Cheers
Uwe

Nick Smith wrote:
> does anyone know how to make a virtual cdrom in linux? kinda like
> daemon tools for windows? i have my iso mounted as /mnt/iso but vmware
> keeps complaining that i cant use a directory as an iso.  i know
> vmware can use iso's as cdroms, but in this instance i cant use
> vmware, i have to mount it some other way and just tell vmware its a
> cdrom drive.  any suggestions?
> 
> TIA
> Nick
> 

[-- Attachment #2: uwe.klosa.vcf --]
[-- Type: text/x-vcard, Size: 242 bytes --]

begin:vcard
fn:Uwe Klosa
n:Klosa;Uwe
org:Uppsala University;Electronic Publishing Centre
adr:;;;Uppsala;;75120;Sweden
email;internet:uwe.klosa@ub.uu.se
tel;work:+46 (0)18 471 7658
url:http://publications.uu.se/epcentre
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 16:16 ` Uwe Klosa
@ 2006-03-01 16:27   ` Nick Smith
  2006-03-01 16:53     ` Heiko Wundram
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Smith @ 2006-03-01 16:27 UTC (permalink / raw
  To: gentoo-user

On 3/1/06, Uwe Klosa <uwe.klosa@ub.uu.se> wrote:
> You don't have to mount it for the use with vmware. Update your vmx file with the following:
>
> ide1:0.fileName = "changeme.iso"
> ide1:0.deviceType = "cdrom-image"
>
> Cheers
> Uwe
>
> Nick Smith wrote:
> > does anyone know how to make a virtual cdrom in linux? kinda like
> > daemon tools for windows? i have my iso mounted as /mnt/iso but vmware
> > keeps complaining that i cant use a directory as an iso.  i know
> > vmware can use iso's as cdroms, but in this instance i cant use
> > vmware, i have to mount it some other way and just tell vmware its a
> > cdrom drive.  any suggestions?
> >
> > TIA
> > Nick
> >
>
>
>
wouldnt that be the same as just telling vmware in the software itself
to use the that iso image? i cant use vmware's virtual cdrom for this
project, it gives me errors on boot, i need to find a way to have it
mounted some other way like daemontools for windows.  i have tried
just mounting the iso as a cdrom in folder /media/cdrom and other
places, but vmware complains that you cant use a folder like that. so
im kinda out of ideas.  can it even be done?

Nick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 16:27   ` Nick Smith
@ 2006-03-01 16:53     ` Heiko Wundram
  2006-03-01 17:02       ` Nick Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Wundram @ 2006-03-01 16:53 UTC (permalink / raw
  To: gentoo-user

Am Mittwoch, 1. März 2006 17:27 schrieb Nick Smith:
> wouldnt that be the same as just telling vmware in the software itself
> to use the that iso image? i cant use vmware's virtual cdrom for this
> project, it gives me errors on boot, i need to find a way to have it
> mounted some other way like daemontools for windows.  i have tried
> just mounting the iso as a cdrom in folder /media/cdrom and other
> places, but vmware complains that you cant use a folder like that. so
> im kinda out of ideas.  can it even be done?

Yes. Basically that's what mount -o loop does internally before mounting it to 
a filesystem; you just have to set up the loop device separately.

For info on that, do a man losetup, basically what you need is:

losetup /dev/loop0 myimage.iso

and tell VMWare to use that loop device as a CD-ROM block device.

YMMV though, as a true CD-ROM block device supports IOCTLs which the loop 
device can't/doesn't.

-- 
--- Heiko.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 16:53     ` Heiko Wundram
@ 2006-03-01 17:02       ` Nick Smith
  2006-03-01 17:55         ` Heiko Wundram
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Smith @ 2006-03-01 17:02 UTC (permalink / raw
  To: gentoo-user

On 3/1/06, Heiko Wundram <me+gentoo-user@modelnine.org> wrote:
> Am Mittwoch, 1. März 2006 17:27 schrieb Nick Smith:
> > wouldnt that be the same as just telling vmware in the software itself
> > to use the that iso image? i cant use vmware's virtual cdrom for this
> > project, it gives me errors on boot, i need to find a way to have it
> > mounted some other way like daemontools for windows.  i have tried
> > just mounting the iso as a cdrom in folder /media/cdrom and other
> > places, but vmware complains that you cant use a folder like that. so
> > im kinda out of ideas.  can it even be done?
>
> Yes. Basically that's what mount -o loop does internally before mounting it to
> a filesystem; you just have to set up the loop device separately.
>
> For info on that, do a man losetup, basically what you need is:
>
> losetup /dev/loop0 myimage.iso
>
> and tell VMWare to use that loop device as a CD-ROM block device.
>
> YMMV though, as a true CD-ROM block device supports IOCTLs which the loop
> device can't/doesn't.
>
> --
> --- Heiko.
>
> --
> gentoo-user@gentoo.org mailing list
>
>
vmware tells me that /dev/loop1 exsists but does not appear to be a
cdrom device, is there something else i have to do?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 17:02       ` Nick Smith
@ 2006-03-01 17:55         ` Heiko Wundram
  2006-03-01 18:09           ` Nick Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Wundram @ 2006-03-01 17:55 UTC (permalink / raw
  To: gentoo-user

Am Mittwoch, 1. März 2006 18:02 schrieb Nick Smith:
> vmware tells me that /dev/loop1 exsists but does not appear to be a
> cdrom device, is there something else i have to do?

As I said, YMMV. The loop device doesn't support CD-ROM-device IOCTLs, which 
are required by VMware as it seems. There's nothing you can do about that, 
except to use the internal CD-ROM emulation that VMware offers. As it seems 
that this doesn't work for you, you're out of luck.

-- 
--- Heiko.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] virtual cdroms in linux
  2006-03-01 17:55         ` Heiko Wundram
@ 2006-03-01 18:09           ` Nick Smith
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Smith @ 2006-03-01 18:09 UTC (permalink / raw
  To: gentoo-user

sweet! oh well, thanks for they help.

On 3/1/06, Heiko Wundram <me+gentoo-user@modelnine.org> wrote:
> Am Mittwoch, 1. März 2006 18:02 schrieb Nick Smith:
> > vmware tells me that /dev/loop1 exsists but does not appear to be a
> > cdrom device, is there something else i have to do?
>
> As I said, YMMV. The loop device doesn't support CD-ROM-device IOCTLs, which
> are required by VMware as it seems. There's nothing you can do about that,
> except to use the internal CD-ROM emulation that VMware offers. As it seems
> that this doesn't work for you, you're out of luck.
>
> --
> --- Heiko.
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
Linux, because I'd rather own a free OS than steal one that's not
worth paying for.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-01 18:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 15:16 [gentoo-user] virtual cdroms in linux Nick Smith
2006-03-01 16:16 ` Uwe Klosa
2006-03-01 16:27   ` Nick Smith
2006-03-01 16:53     ` Heiko Wundram
2006-03-01 17:02       ` Nick Smith
2006-03-01 17:55         ` Heiko Wundram
2006-03-01 18:09           ` Nick Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox