Start vm linux Guests in single-user mode

Hi -
I have OBIEE vm template installed and everything is OK, I forgot the roor password for this guest, (ovsroot) is not working I think I've changed it. One option is to start this guest in single-user mode, I tried but you can't see the console until the system is starting services which is a late phase to run linux single command on boot prompt. Please advice how can change my root password using single-user mode.
thanks in advance
Omar

Omar M Sawalhah wrote:
Sorry, but I am not sure I am getting this right, where should I add 'single console=xvc0', if you mean the guest, as I mentioned in my post I don't know the root password and I can't logon. please kindly if you can add more detailed steps.When you boot your guest using xm create -c vm.cfg, it will immediately connect you to the console of the guest. That will show you the GRUB boot menu. You then need to edit the kernel boot line exactly the same way you would a physical server. In order to boot into single-user mode, you need to add the parameter single to the boot line. Along with that parameter, you also need console=xvc0 so that the guest uses the connected console to show you the boot process and allows you access to the single-user shell. If you do not use this parameter, you'll need to determine the VNC port used by the guest and used VNC to connect to the console instead.

Similar Messages

  • Imac won't start up n issues in single user mode

    Imac won't start up after long time 'frazing' of Firefox. Manual start up ended up in the grey screen forever'processing' icon.
    Had a look at other solutions, unable to enter safe mode. Someone mentioned to try single user mode and it went through half way  with error messages on the screen which has no command line available for me to key in any letter.
    My Imac has been out of warranty coverage for a while, how do I know if it's hard ware problems before paying for service?
    Any help would be appreciated!
    Alice

    Yes, I have backed up and deleted old files using target disk mode with an old macbook.  It's just the larger files I didn't have enough space and disks for.  I really appreciate your help on this as I've never had any mac issues before this so am not really sure what to look for.

  • Agetty fails to start after switching out of single user mode

    Every time I switch to runlevel 3 from single user mode, agetty fails with this error:
    Jan 29 10:19:28 localhost agetty[1445]: /dev/tty1: cannot open as standard input: Input/output error
    And since it fails, init disables it for 5 minutes… This always happens on the virtual console I run "init 3" on; the other consoles work fine.
    This is how I run agetty from /etc/inittab:
    c1:2345:respawn:/sbin/agetty -8 -s 38400 -a ma --noclear tty1 linux
    Disabling auto-login and removing the --noclear option does not make any difference. Does anyone have a clue what is going on? It is more of an inconvenience than a problem, but still… I am using early KMS on an ATI Radeon 9550 card, by the way.

    So nobody else has been bitten by this stupid bug?
    Anyway, it happens on a pure VGA console too, so it has nothing to do with the video driver. And I take back the “more of an inconvenience” part – it is freaking annoying that one can not just properly change the runlevel. Oh well…

  • Start SQL Server in single user mode with parameter -m doesn't work well

    C:\Windows\system32>net start mssqlserver /m "Microsoft SQL Server Management St
    udio - Query"
    The SQL Server (MSSQLSERVER) service is starting.
    The SQL Server (MSSQLSERVER) service was started successfully.
    C:\Windows\system32>sqlcmd -S . -e
    1> go
    1> select @@servername;
    2> go
    select @@servername;
    myserver
    (1 rows affected)
    1>
    As you can see, I'm still able to connect with sqlcmd prompt to SQL Server. According production doc of SQL Server 2014, it should not be conncting by sqlcmd. it shall only be connected by SSMS.
    below the original doc on msdn:
    Start SQL Server in Single-User Mode
    Provide Feedback
    Under certain circumstances, you may have to start an instance of SQL Server
    in single-user mode by using the startup option -m. For
    example, you may want to change server configuration options or recover a
    damaged master database or other system database. Both actions require starting
    an instance of SQL Server in single-user mode.
    Starting SQL Server in single-user mode enables any member of the computer's
    local Administrators group to connect to the instance of SQL Server as a member
    of the sysadmin fixed server role. For more information, see Connect to
    SQL Server When System Administrators Are Locked
    Out.
    When you start an instance of SQL Server in single-user mode, note the
    following:
    Only one user can connect to the server.
    The CHECKPOINT process is not executed. By default, it is executed
    automatically at startup.
    Note
    Stop the SQL Server Agent service before connecting to an instance of SQL
    Server in single-user mode; otherwise, the SQL Server Agent service uses the
    connection, thereby blocking it.
    When you start an instance of SQL Server in single-user mode, SQL Server
    Management Studio can connect to SQL Server. Object Explorer in Management
    Studio might fail because it requires more than one connection for some
    operations. To manage SQL Server in single-user mode, execute Transact-SQL
    statements by connecting only through the Query Editor in Management Studio, or
    use the
    sqlcmd utility.
    When you use the -m option with sqlcmd or
    Management Studio, you can limit the connections to a specified client
    application. For example, -m"sqlcmd" limits connections to a
    single connection and that connection must identify itself as the
    sqlcmd client program. Use this option when you are starting
    SQL Server in single-user mode and an unknown client application is taking the
    only available connection. To connect through the Query Editor in Management
    Studio, use -m"Microsoft SQL Server Management Studio - Query".
    Shawn

    Hi Shawn Xiao,
    For starting SQL Server instance in single user mode, we can add –m; parameter in SQL Server Configuration Manager, also we can run CMD with ‘Run as administrator’ and input the following statement.
    NET START MSSQLSERVER /m
    I do a test in SQL Server 2014 Express version, after starting SQL with Single User Mode, SQL Server will only accept one connection. If you connect to SQL Server with a user account, the following error will occur.
    Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.
    However, in your situation, you can connect to SQL Server and run T-SQL statement successfully, it can be due to connection with the administrator account in your sqlcmd.
    For more information, you can review the following article.
    http://zarez.net/?p=117
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Stuck while booting in single user mode. How to go back?

    Guys. I'd appreciate your advice very much - this concerns my main system. 
    MacBook 3,1 with OSX 10.5.? (latest)
    Did: activate single user boot in Onyx; reboot
    Problem: stuck at boot (apple logo & spinning wheel  on gray background for 2hours+). Persistent across reboots. 
    No different results for this key combinations: cmd-opt-p-r, power button for 5 sec whilst without battery/cable, cmd-s, C (possibly not recognized due to firmware password) Power button held down from switch-on moment makes the light flash a few times, produces a beep but no improvement. 
    Interestingly pressing alt lets me choose the os (HD or Leopard install disc) but gets stuck the same way regardless. It boots into Ubuntu tho. 
    I have a TIme Machine disk that I can restore from, and can read from the internal Leopard HD while in Ubuntu.
    So, please: how do I get it to boot? I'd set the nvram bootargs="" but from where...
         

    Sorry, don't know how you'd recover from the apparent limbo you're in, but this would agree with the explanation you already hit upon.
    http://support.apple.com/kb/HT1352
    Features of Open Firmware Password Protection
    Intel-based Mac computers Power PC Intel
    Blocks the ability to use the "C" key to start up from an optical disc.
    Blocks the ability to use the "D" key to start up from the Diagnostic volume of the Install DVD.
    Blocks the ability to use the "N" key to start up from a NetBoot server.
    Blocks the ability to use the "T" key to start up in Target Disk Mode (on computers that offer this feature).
    Blocks the ability to start up in Verbose mode by pressing the Command-V key combination during startup.
    Block the ability to start up a system in Single-user mode by pressing the Command-S key combination during startup.
    Blocks a reset of Parameter RAM (PRAM) by pressing the Command-Option-P-R key combination during startup.
    Requires the password to enter commands after starting up in Open Firmware, which is done by pressing the Command-Option-O-F key combination during startup.
    Blocks the ability to start up in Safe Boot mode by pressing the Shift key during startup.
    Requires the password to use the Startup Manager, accessed by pressing the Option key during startup (see below).

  • IMac G5 only starts up in Single-User Mode

    I am using an iMac G5 with the lastest version of Tiger.
    I was trying to make a my.cnf file for MySQL for it to start logging queries, however was having some trouble doing so. After restarting MySQL a few times it would not start up any more, so I tried restarting the computer.
    After doing this Personal Web Sharing (httpd) would say that it was running although would not serve pages. So I tried restarting httpd which got it running properly, however I still had the same problem with MySQL, where it would not start running (the Preference pane would not respond when clicking "Start".)
    So I tried restarting again. Now my iMac will only boot into single-user mode.
    I read somewhere about modifying the boot-args, however have not had a chance to try it yet. I don't see why this would do anything however, as I'm not sure why that would have been changed in the first place?
    Has anyone heard of a similar instance, which is possibly related to MySQL?
    Thank you in advance for any help.
    - Jeff
    G5 iMac   Mac OS X (10.4.7)  

    I solved this. I was able to boot up in verbose mode and note that a certain missing file '/etc/hostconfig' was mysteriously missing and causing an error at the boot-up. I was able to boot this mac up in Target Disk mode and copy the file into the /etc/ directory from a backup through another Mac and now it's working fine, thank G-d!
    - Jeff

  • Unable to start up in "Single User Mode."

    I am on an Intel Mac Pro. I can't seem to start up in the Single User Mode.
    I hold down the Command and S keys during startup, but always get to my regular screen, logged in to my account. I changed the login options from automatic to off, but the same thing still happens. Any help would be appreciated.

    Hi
    Have you possibly set yourself a firmware password? Further instructions here:
    http://support.apple.com/kb/ht1352
    Tony

  • MacBook randomly starting up in single-user mode

    Hi, for a few weeks now my MacBook's been starting up in single-user mode by itself, without me touching anything. The thing is, it only happens about half the time - otherwise it's booting up normally. I wiped my drive and reinstalled Lion, ran fsck and used disk utility several times, but it's still happening.
    Anyone got any idea of what could be the problem?
    Thanks.

    My friend, you are onto something Turning my keyboard on *after* startup for the last week and it hasn't happened once! Any idea why it's doing that? Thanks!

  • MBP starts up in Single User Mode by default..

    I restarted the machine because the trackpad was acting up. After file vault reclaimed unused disk space, the computer restarted with a black screen with "localhost :/ root#" in the upper left screen. I know very little unix so please forgive my lack of lingo.
    How can I possibly get back to the graphical multi user login? I have tried to restart in safe mode and from the install dvd but they just bring me back to the "localhost :/ root#" black screen. I have also restarted holding down the option key to select a drive, which I set to my drive name, and same thing-- Apple logo on a grey screen, spinning gear, then black screen localhost :/ root#. Only thing I havent tried that im aware of is target mode, but my other computer (Rev A. iMac) which is the machine I am writng this from is on OS 9 with no fire wire and just a 4g drive.
    So I need some advice if you have any. Hardware appears fine save for the trackpad and button being touchy. Apple has already replaced my swelling battery. They told me the new mbp's have a barrier between the the battery and trackpad assembly, (a prior neglected, inherent design flaw).
    I do have a new USB external hd. Is there any way to login my home folder and completely copy the home folder contents to it in single user mode? If I could do this, I would at least be able to keep my itunes librarys, playlists, keychain data, mail, etc.. Thanks in advance for any help any of you may have

    Ok, I did the dmesg command at the prompt. Here is word for word what it spit out:
    localhost:/ root# dmesg
    hi mem tramps at 0xffe00000
    PRE enabled
    standard timeslicing quantum 10000 us
    vmpagebootstrap:513016 free pages
    migtable_maxdispl = 71
    Enabling XMM register save/restore and SSE/SSE2 opcodes
    96 prelinked modules
    ACPI CA 20060421
    AppleIntelCPUPowerManagement: ready
    AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
    AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
    Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of The University of California. All Rights Reserved.
    using 10485 buffer headers and 4096 cluster IO buffer headers
    Enabling XMM register save/restore and SSE/SSE2 opcodes
    Started CPU 01
    IOAPIC: Version 0x20 Vectors 64:87
    ACPI: System State [S0 S3 S4 S5] (S3)
    Security auditing service present
    BSM Auditing Present
    disabled
    rooting via boot-uuid from /chosen: 00001B5D-7D26-0000-2F5D-000090200000
    Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    USB caused wake event (EHCI)
    FireWire (OHCI) Lucent ID 5811 PCI now active, GUID 0016cbfffe523440; max speed s400.
    Got boot device =IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT 2@2/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDr iver/ST9100824AS Media/IOGUIDPartitionScheme/Customer02
    BSD root: disk0s2, major 14, minor 2
    CSRHIDTransitionDriver::probe:
    CSRHIDTransitionDriver::start before command
    CSRHIDTransitionDriver::stop
    IOBluetoothHCIController::start Idle Timer Stopped
    disk0s2: 0xe0030005 (UNDEFINED).
    localhost:/ root#
    A couple of things to note:
    1. I did have an external bootable drive, which does work properly when selected as the Startup Disk, but still registers when not plugged in the machine.
    2 File Vault is turned on. And let me tell you. If you ever use more than half your drive space, as most people do, you will have a humbling experience. File Vault is overkill. I am angry that Apple could not come up with a "fail-safe" for legitimate, password bearing rightful owners.
    I just want one chance to get in my home folder to get what I want (my music, photos, mail, passwords, widgets, etc.)

  • Starting up in single-user mode problem

    I'm trying to start up in single user mode using the Apple article. I ran fsck and everything checked out fine but when I type /sbin/mount -uw / I just get another prompt(#). I want to restore defaults because the users pane is blank. Iv'e tried trashing prefs,ect with no change. I'm sure i'm typing it in correctly. Any suggestions wil be appreciated.
    iMac G5 1.8 17   Mac OS X (10.4.3)  

    I'm working with an iBook 600 OSX 10.4.3 that had a problem with a dialog box constantly coming up asking for the keychain password which had no password and you could just cancel out of it. I deleted some keychain user info and that's when the accounts pane became an empty window. So I'm going to use the Terminal to restore from defaults. I'm assuming that I won't loose any data doing this. It looks like my only option other than a wipe of the hard drive.
    iMac G5 1.8 17   Mac OS X (10.4.3)  

  • Powerbook -can't start up in single user mode or from CD-why?

    My daughter was gifted a Powerbook (15"). I've upgraded it to 10.5.8. It has enough speed, (1.67 Ghz), 2 gigs RAM- but it is a sticky little machine- it freezes a lot. Froze twice during the upgrade, froze once during login, Froze once while trying to do a software update, froze once while trying to get into the system preferences. It freezes pretty consistently after 15-30 minutes or so, no matter what it's doing -if a program is running or not. I tried downloading AppleJack to run a diagnostic. That requires starting up from single user mode. I tried to do that , but the machine just opens to the login screen. I also tried running TechTool from the CD, and the machine wouldn't start up from CD either. What should I try next?

    Try this one for some information.

  • Macbook shuts off during start-up - can't get through safe-mode, single user mode (fsck -fy) and target-drive shows no problems when running disk utility repair

    Hi everyone,
    I'm simply all out of ideas on what to do - my best guess is the problem is not specifically hard-drive related since all the 'normal' fixes just won't work.
    What could be the cause of my issue? The only way i've managed to keep the Macbook Pro on for longer than a minute is through target drive, where it seems to work just fine - i can access everything. To sum up everything:
    1 - I tried resetting the PRAM
    2 - I tried to go in to safe mode, it shut off before i could type the password
    3 - I tried fsck -fy command from single user mode, sometimes i can get to actually typing it but mostly it shuts off before
    4 - I tried to repair disk via target drive - success, no problems detected (and it didnt fix my issue)
    5 - I reinstalled OS Mavericks.
    The Macbook Pro previously had some problems with the power-button not working properly (a mac-cunning friend of mine had to open up the mac and start it by swiping to metal pins on a specific (battery/power?) part inside it. The problem kinda went away afterwards but it might be related to this?
    This is way off my comfort zone of 'diagnosing' issues, so I'm crossing fingers for some good advice.
    Thanks,
    Aske
    Denmark

    I think you're right.
    If it's hardware related, is it possible to guess at what it might be? It would be nice to know how much I should expect to pay for a repair before actually getting it fixed.

  • Powerbook won't start, got message i don't understand in single-user mode

    PowerBook G4 Mac OS X (10.3.9)
    About a week ago my powerbook (purchased in Dec '03, running 10.3.9) froze while I was using it. I had to manually shut it off, and then it would not restart (got stuck on grey screen with gear). I was able to start it up again once in Safe Mode, at which point I downloaded and ran Macaroni. Upon reboot, it wouldn't start up at all, staying on the grey screen for 15-20 minutes before I gave up. Now, I've tried starting it in Single-user mode. At the command I typed "fsck -fy" and the following message was returned:
    "Singleuser boot -- fsck not done
    Root device is mounted read-only
    If you want to make modifications to files,
    run ' /sbin/fsck -y' first and then '/sbin/mount -uw /'
    localhost:/ root# "
    Does anyone have any idea what this means?
    I am expecting the worse, I made a bootable back up in august, but was hoping to get it to start at least once more so i could update that back up or email myself some files. The only other possibly relevant info is that when it froze last week it started making really really loud repetitive noises (as if the hard drive was stuck?). For a while there I was also hearing an odd humming noise whenever i plugged in the AC adapter.
    Well, any help would be truly appreciated.
    thanks in advance..
    PowerBook G4   Mac OS X (10.3.9)  

    The two observations may be related. It is possible that the power adapter has developed a fray or short, and is giving insufficient power for the hard drive to operate properly. Do you have another Mac you can connect the machine to via Target Disk Mode after getting a replacement power adapter?
    I would also get a copy of Prosoft Data Rescue and an external hard drive that is Firewire at least as big as the internal hard drive. That will give you a chance to recover information if it is at all reachable.
    If the directory is damaged Alsoft Disk Warrior may be able to repair it, but I'd only run that after determining Prosoft Data Rescue is unable to rescue any usable data.
    I would not attempt to run any norton utilities on it, and if you have in the past don't do it again, as Disk Doctor and Speed Disk have been known to damage Mac OS X more than fix it.

  • Impossible to boot MacBook Pro Retina ! impossible to start in single user mode, Openfirmware password set, but safari works!

    I have got a Macbook pro retina.
    I have done 2 partitions on the SSD drive. 1 for the OS and 1 for the user (with a kind of ln -s /Home/myself /Volume/Part2/myself
    I was watching a movie (with VLC) in full screen for a while and I wanted to escape. Impossible, and impossible to reboot.
    When I start, I have a directory with a question mark.
    I have a Open firmware passwords set (that I remember).
    I cannot reset PRAM. (I can not change the RAM amount inside the commuter as this is a retina model)
    I cannot start in verbose mode.
    I can choose a disk to boot. I see only the OS drive and not the user partition, and no 'recovery partition'. It seems that i need to do a fsck -yff on the user partition but how ?
    I can start the OS partition, and i can choose 'guess' or 'myself'. If i choose myself, I have an error message :'there is a error, the session can not start'. If I start with the guess account, I restart, and then I can browse the internet with safari (this is how I am writing this text!)
    => How can i repair the partition ? (open a terminal, boot in single user mode ...?)
    best regards.

    Actually, the recovery partition was there, but was not shown as my user partition. I have seen that reseting the PRAM and changing the ram could remove the open firemware password. So i have turn the computer on until the battery was empty. Then I boot about 20 times, and unplug the power supply after few seconds at different step of the booting pricess. At last, the screen default resolution when booting changed, I undertood that i succeeded, and I was able to enter.
    Then I boot in single user mode, removed the open firmware password, activated the root user,  and everything was fine now !

  • Unable to start in single-user mode - HD dead?

    My MacBook Pro (Mac OS X) refused to start, it hung up on the loading screen where you see the apple and the spinning loading wheel. I found out how to fix this, I had to go into single-user mode and type "/sbin/fsck -fy" to repair/verify the disk (I was unable to do so from the Disk Utility via the Install Disc, the repair/verify buttons were just grayed out).
    Anyways, doing this from the command line (single-user mode) fixed the problem and I could boot into Mac OS X (there were more issuses after this point which forced me to do an "Archive and Install").
    ^ that happened a week ago. And happened again yesterday, hung up on the exact same point. So I boot up my Mac into single-user mode, and type in "/sbin/fsck -fy" to start the process. Different from last time, I got a lot of text this time. It also kept going for a longer while. After about 10 minutes, there was a couple of minutes where nothing happened. So I typed "/sbin/fsck -fy" again (as I'm supposed to do so until it says "** The volume (nameofvolume) appears to be OK"), and I got some more text, then nothing happened for a while.
    Inpatient as I am, I considered the process to be complete, and restarted my Mac by typing "exit".
    I think I ****** up my Mac OS X partition at this point. Because when I try to start my Mac now, it automaticly boots into Windows XP (my other partition). Also I cannot enter single-user mode or Verbose mode, the Mac just ignores and goes right into Windows XP.
    I've tried to boot from the Install Disc. When I run Disk Utility, the "HD"(name of Mac OS X partition) is grayed out. I can't do an Archive and Install because it cannot detect my main partition.
    An interesting thing though: When I have the Install Disc inserted, I can enter single-user mode (by holding cmd+s at startup). However, when I type /sbin/fsck -fy, it starts verifying the Install Disc rather than the HD.
    Also when I open My Computer in Windows XP, I can see the other partition (MacDrive). When I select it, I see:
    Free Space: 219GB
    Total Size: 168GB
    This indicates that my HD is dead/erased, and that my last three months of work is gone. This just because I'm impatient, and didn't wait for the fsck process to complete.
    What is the next step? How can I get into single-user mode so that I can verify/repair my disc?

    On the point of contacting the folks at Alsoft, I have found that they seem to be unobtainable on www.alsoft.com at present.
    I wanted to get in touch as I had a small problem with Diskwarrior on updating to 10.5.5 from 10.5.4 ,
    Disk permissions ends with an error code.
    I wonder if there were so many queries re this that they are unobtainable?
    I run 3 machines from a wireless router, an iMac, an HP laptop with XP and a totally obsolete Dell into which i have squeezed W2000, with a resultant mix of browsers but no contact with the folks at Alsoft.
    Am I in a minority of one here?

Maybe you are looking for