Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo in Azure Cloud (with Virtualbox)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
hydrapolic
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2008
Posts: 124

PostPosted: Fri Jul 22, 2016 1:13 pm    Post subject: Gentoo in Azure Cloud (with Virtualbox) Reply with quote

Currently there is no Gentoo Linux image in Azure cloud, but it's possible to create your own. Here is a way to do it, which worked for me.

[*] Create a virtual machine in Virtualbox (be sure to use VHD file type)
[*] Create a bios boot partition (2MB) and a 15GB partition for the system (ext4), no swap

Disk /dev/sda: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 00E0A79F-5E60-4C77-818E-2228F542E204

Device Start End Sectors Size Type
/dev/sda1 2048 6143 4096 2M BIOS boot
/dev/sda2 6144 30719966 30713823 14.7G Linux filesystem

[*] Install a basic Gentoo machine (https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation)
[*] You will need to following packages to be present:
- app-emulation/wa-linux-agent (https://github.com/hydrapolic/gentoo/tree/master/app-emulation/wa-linux-agent)
- net-fs/nfs-utils
- net-misc/dhcpcd
[*] When compiling your kernel, be sure to include:
- HYPERV (STORAGE, NET...)
- NTFS
- UDF
[*] Add "console=ttyS0 earlyprintk=ttyS0" to your kernel boot parameters

Now you need to upload the image to Azure. Install https://www.npmjs.com/package/azure-cli, then:
# azure login
# azure storage account create gentoo
# azure vm image create gentoo --blob-url https://gentoo.blob.core.windows.net/gentoo.vhd --os Linux ~/.VirtualBox/Machines/gentoo/gentoo.vhd
# azure vm create -g @your_ssh_login@ -p @your_ssh_pass@ -e 22 @your_machine_name@ gentoo

More info: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-generic/#general-linux-installation-notes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum