Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Running qemu-system-aarch64 on x86_64 system?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
grapefruithoarder2000
n00b
n00b
User avatar
Posts: 11
Joined: Mon Feb 19, 2024 8:14 pm

Running qemu-system-aarch64 on x86_64 system?

  • Quote

Post by grapefruithoarder2000 » Fri Mar 08, 2024 3:26 pm

Hello. So i have been playing around with quite a lot of different virtual machines, configurations, operating systems etc..
I wanted to try emulating some other architecture with qemu and had quite the problems trying to get it to work.

Currently i am trying to install debian for my virtual machine but i really don't get what i'm doing wrong. Whenever i run the command where i install to the debian.img then qemu just seems to start in some weird monitor mode? Its some kind of command line for qemu but i dont really know why that is starting up.

The result that i expect to happen is that it boots my debian.iso

But actually it just starts in this command line Qemu monitor mode...

This is the command i use:

Code: Select all

qemu-system-aarch64 -machine virt -cdrom debian.iso -boot d -hda debian.img -m 16000
Need some directions :oops:
If you are a false don't entry
The nuclear drums will crush your brain
Because you'll be burned and died
Top
whig
l33t
l33t
Posts: 973
Joined: Sat Nov 27, 2004 8:36 am
Location: New Zealand

  • Quote

Post by whig » Fri Mar 08, 2024 11:16 pm

Hi there,

This is a command for a different system so modify it. Set up the image with qemu-nbd, Arch Linux has information about that. Include authorized_keys for ssh access. The base I used was from an already installed .zip file, Devuan trial arm images.

Code: Select all

qemu-system-arm -M virt -serial stdio -display none \
 -rtc base=utc -m 2048 -smp 2 \
 -drive if=none,file=disk-armhf.img,format=qcow2,id=hd \
 -device virtio-blk-device,drive=hd \
 -netdev user,id=inet,hostfwd=tcp:127.0.0.1:3124-:22 \
 -device virtio-net-device,netdev=inet \
 -kernel kv -initrd ki -append 'root=/dev/vda1 ro'
Also you may want console login, if so branch from rc.local for a root shell:

Code: Select all

bash -i >/dev/console </dev/console &
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic