Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo SPARC in QEMU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Apr 17, 2010 7:03 am    Post subject: Installing Gentoo SPARC in QEMU Reply with quote

I want to install Gentoo SPARC in QEMU, but:

1. I don't know how to specify a 64-bit SPARC CPU, if this is even necessary.
2. I am too ignorant to understand how to boot the most recent live CD.
Back to top
View user's profile Send private message
judepereira
Apprentice
Apprentice


Joined: 19 Jan 2008
Posts: 179
Location: Portage, yes, somewhere out there

PostPosted: Tue Apr 20, 2010 5:50 pm    Post subject: Reply with quote

Make sure you have your qemu/kvm compiled with the following:
QEMU_SOFTMMU_TARGETS=sparc64
QEMU_USER_TARGETS=sparc64

"emerge -avDN qemu qemu-kvm" uses the default flags, don't need to edit them much.

I suggest that you just install everything, you never know when do you need it.
Fetch the gentoo minimal install iso for sparc, boot it up(command follows), you'll need to use your internet connection to install packages and fetch the various things needed from the qemu virtual machine.

Here's what I have in one of my virtual machine scripts:
Code:

#!/bin/bash

# created by jude pereira
# this is the developmental gentoo server on which development will take place
# if you are unsure if you should use this, then you don't need to use this
# ~by order!
# v1.2

qemu-kvm \
-boot c \
-cpu qemu64,+ssse3,+ht,+monitor,+vmx,+est,+cx16,+xtpr -smp 2 -m 384M \
-hda '/media/Clustrix_Data0/devel/gentoo_build/the_system.devel' \
-net nic,vlan=0 -net user,vlan=0 \
-localtime -nographic -curses \
-redir tcp:8022::22 \
-redir tcp:8021::21 \
-redir tcp:8080::80 \
-name "the_system developmental server"

# you can ssh into this server by
# $ ssh root@127.0.0.1 -p 8021
# or add 127.0.0.1   the_system.devel into your /etc/hosts
# $ ssh root@the_system.devel -p 8021

Okay so hands off, you'll need to change qemu-kvm to qemu-system-sparc, and remove the extra flags that I've added. Keep the -redir tcp:8021::21, as you can ssh into the machine later, if needed. To boot from the iso image, add -cdrom /path/to/gentoo-iso-for-sparc.iso
Leave the net as it is, with this, you can just directly access your already connected host internet, and can also ssh into the machine.
You can find a list of all sparc cpus available by qemu-system-sparc -cpu ?
Hope you found this useful
_________________
Jude Pereira
(http://judepereira.com)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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