Create a new virtual machine and set the hard drive capacity, it should be at least 20 GB of hard drive space. For Mac OS X 10.7 to 10.9, set at least 2 GB RAM, otherwise, 1 GB should be enough. Motivation running mac os x from virtualbox helps to experiment with software deployment for that platform. I’m using gentoo linux as host system with 2.6.34-gentoo-r6 kernel on a 64 bit core 2 duo machine with virtualbox 3.2.10 OSE. There are various blog postings about how to get it running so i won’t repeat this here. The most important thing is to use the snow leopard retail dvd. As the dvd coming with the mac (a mac book pro in my case) won’t work. You can get the retail dvd on ebay or various other sources. Note: the retail dvd is not labeled ‘snow leopard retail dvd’ but something like ‘snow leopard update dvd’ in most auctions (don’t blame me if that is wrong). How i use it having snow leopard not only native, but also in a virtualbox image, makes testing of software easier. Hints disk image size i use about 40 gb here, and about 25 gb are actually in use with: • latest patch (1 gb) • xcode (6-8 gb) • trolltechs qt sdk (2 gb) • mac os x (8 gb) i wasted a lot of disk space with a default installation. But i don’t want to spend too much time on that right now so i will leave it that way. I removed the printer drivers later on, saved me 600mb. When installing software, map the image (dmg) using samba (running on the host machine) import dmg images, which are used to install software from, using samba from the host. This way you do not have to copy the dmg onto the virtual machine using ssh or by mapping an external harddrive (note: the OSE version i am using, does not support USB host mapping anyway) into the virtual machine. This also reduces the host image size by a few gigabyte of disk space. Initially i was doing it wrong: i copied the file, installed from it and finally removed it. However, removing it did not have much of an effect, as virtualbox does not know about hfs+ partition scheme, therefore the file is only deleted inside the virtualmachine, still the host image uses the diskspace. Example: my current disk image: mac os x [snow leopard].vdi is at 25Gb. But inside the virtual machine is is only 18gb. Smb.conf [global] workgroup = MYGROUP server string = Samba Server security = share dns proxy = no [rw-files] comment = Temporary rw files path = /home/user/smbshare/rw read only = no writable = yes public = yes [ro-files] comment = Temporary ro files path = /home/user/smbshare/ro read only = no writable = no public = yes don’t forget to: • create the paths listed above • secure the network as a rw path might be accessible from your lan consider using a user/password for that. Downloading xcode use wget to download it. How to edit info.plist in x code. Apple Footer • This site contains user submitted content, comments and opinions and is for informational purposes only.
0 Comments
Leave a Reply. |